//
//  BBSReportController.m
//  CaiPiao
//
//  Created by l wb on 2018/5/21.
//  Copyright © 2018年 apple. All rights reserved.
//

#import "BBSReportController.h"

@interface BBSReportController ()
@property (strong, nonatomic) UIButton *pastBtn;
@end

@implementation BBSReportController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.pastBtn = [self.view viewWithTag:1];
}
-(void)showAlertView{
    self.view.frame = [UIScreen mainScreen].bounds;
    self.view.backgroundColor = [[UIColor blackColor]colorWithAlphaComponent:0.5];
    CATransition *applicationLoadViewIn =[CATransition animation];
    [applicationLoadViewIn setDuration:0.3];
    [applicationLoadViewIn setType:kCATransitionFade];
    [applicationLoadViewIn setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
    [[[[UIApplication sharedApplication] keyWindow] layer]addAnimation:applicationLoadViewIn forKey:kCATransitionReveal];
    [[[UIApplication sharedApplication] keyWindow] addSubview:self.view];
}
- (IBAction)btnClickAction:(UIButton *)sender {
    self.pastBtn.selected = NO;
    sender.selected = YES;
    self.pastBtn = sender;

    
}
- (IBAction)cancelBtnClickAction:(UIButton *)sender {
    [self.view removeFromSuperview];
    
}
- (IBAction)sureBtnClickAction:(UIButton *)sender {
    [self.view removeFromSuperview];
    [EasyTextView showText:@"举报已提交"];
    
}
-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    UITouch *touch  = [touches anyObject];
    if (touch.view == self.view) {
        [self.view removeFromSuperview];
    }
}

@end
